/**
 * @author cct
 * @description Register接口
 * @date 2023-2-3
 */
import axiosInstance from "../axiosInstance";

const RegisterInfo = {
    /**
     * 根据邮箱获取验证码
     * @param {{eamil}} param0 
     * @returns 
     */
    getVerificationCode({ email }) {
        return axiosInstance.post('/user/getVerificationCode', {
            email
        })
    },

    /**
     * 提交注册表单
     * @param {{userName, userPassword, phone, email, code, introduce, nickname, sex, pic, birthday, constellation, area }} param0 
     * @returns 
     */
    checkRegister({ userName, userPassword, phone, email, code, introduce, nickname, sex, pic, birthday, constellation, area }) {
        return axiosInstance.post("/user/register", {
            userName, userPassword, phone, email, code, introduce, nickname, sex, pic, birthday, constellation, area
        })
    }
}
export default RegisterInfo;